package com.literature.search.core.enums;


public enum CodeEnum {

    CODE_SUCCESS(200,"成功"),
    CODE_ERROR(201,"错误状态码"),
    CODE_WARNING(501,"警告状态码"),
    CODE_NOT_JUR(403,"无权限状态码"),
    CODE_NOT_LOGIN(401,"未登录状态码"),
    CODE_INVALID_REQUEST(400,"无效请求状态码")
    ;

    private Integer code;

    private String msg;

    CodeEnum(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public  Integer getCode(){
        return code;
    }

    public String getMsg(){
        return msg;
    }
}
